I call it 'the jitters' and I can guarantee to get it [any time of day] if either, I haven't had sufficient protein and (saturated!) fats or, conversely, too many carbs and polyunsaturate fats. If it's the same thing with you, perhaps you could try and eat some protein - and probably a little fat, closer to bedtime?
NB I've put saturated fat - after an entire life of low-fat and/or olive spreads I found I feel way better and more stable on butter and have since found that actually this is well known in medical circles - ie. thyroid people need saturated and monosaturated fats as polyunsaturates actually have a negative effect
"By l950, then, it was established that unsaturated fats suppress the metabolic rate, apparently creating hypothyroidism. Over the next few decades, the exact mechanisms of that metabolic damage were studied. Unsaturated fats damage the mitochondria, partly by suppressing the respiratory enzyme, and partly by causing generalized oxidative damage. The more unsaturated the oils are, the more specifically they suppress tissue response to thyroid hormone, and transport of the hormone on the thyroid transport protein."
Priceless isn't it..?!