These are the steps for dirty flash that worked for me...
2) clear cache, dalvik cache, system
3) Flash rom
4) flash gapps
But I had problems with 16/4 nightly so I went back to 23/3. (I wrote about my issues in earlier posts). I tried doing a clean flash too but it didn't help.
I never had the error message you're seeing though... sorry
Hopefully you have a backup and can go back to 23/3! (I find my battery life better on 23/3 too)
Sent from my Nexus 5 using Tapatalk
thanks, i will try it in next update
...battery life was better on 23/3...