Lack of sleep always makes my vertigo worse.
What you described though sounds to me as if your BP was low from lying down.
If fainting episodes occur when you're walking around, then that's different. Needs to be checked out.
Don't forget to B...R...E...A...T...H...E.