My D7000 had a way of erroring like that during long exposures at night, in the dark. The battery ran low with the mirror up. I would have to actually push the shutter release after changing the battery to correct the error. Ruined a couple of astrophotography nights until I worked that out.