I've had this for years, esp when pregnant.
A few natural things to try if you haven't already.
Check iron levels, low levels can trigger this.
Check Mag. levels, another trigger.
Don't drink caffinee before bed, sometimes a trigger but not always.
Take a bath with epsom salts and baking...