Hello,
Issue was caused by some piece of custom code in Theme Options > Custom CSS to make the full width of the mega menu. I removed that code and set the full-width mega menu using the menu element settings of the header builder instead of the custom code.
Regards