Headaches from lifting can adversely affect your functionality and ability to train for several days, if you’re lucky, and possibly weeks, if you’re not.
Diets, while well-intended, are just distractions from the larger issues that lurk beneath the surface. And they are likely making you fatter and less healthy.