I am 100% sure this is due to hormones. I know this as I have had patches of it - not all the time and not related to life events or outside stresses.
Typical scenario for me when it happens is that I wake at 5am in a pool of sweat, get up feel panic stricken, full of adrenaline and have an urgent need to use the bathroom for bowels. Now not many talk about this but I think it should be mentioned, as I have a friend who also gets this in perimenopause and we have supported each other. It can be very difficult to manage in situations such as holidays or if you have morning appointments. It isn't IBS- it is related to adrenaline surges caused by drops in oestrogen which are most pronounced in the early morning between 5 and 6am.
Balancing blood sugars does help. I have a sugar monitor and keep a check on levels anyway as I like to make sure I'm not going diabetic.
I know it is hormonal as sometimes it disappears altogether and I don't feel at all anxious. On a bad day it can render me close to a toilet all morning which is very hard to cope with. I had this on an early morning flight last year when I had to rush to catch it. I woke up knowing it was going to be a bad day and it was.
These are the symptoms of menopause that are rarely talked about. This is why this forum is vital.