hi and welcome to the community,
first of all, congratulations on having cut down the sugars! it takes alot of self control to be able to do that.
from all of the things you mentioned your symptoms sound a lot like short term opiate withdrawal. the medication you are using to treat your symptoms contains codeine - a low level opiate, which can create a physical dependence with long term use.
this would explain most of your symptoms - particularly the headaches, increased sensitivity to light, decreased appetite, low level of energy, and weight loss.
Other symptoms of opiate withdrawal are:
severe fatigue, lack of motivation, moderate to severe and crushing depression, feelings of panic, sensations in the legs (and occasionally arms) causing kicking movements which disrupt sleep, increased heartrate and blood pressure, chills, gooseflesh, headaches, anorexia (lack of appetite), mild or moderate tremors, and other adrenergic symptoms, severe aches and pains in muscles and perceivably bones, and weight loss in severe withdrawal.
how long have you been taking migraleve?
do you take any other medication?
what is the longest time period that you have gone without using this or other medications?