This is partially correct. The main reason why Brexit happened was because American and European capitalism began to decline after the 2008 economic crisis. Every 4 to 7 years, capitalism exhibits a major crash, and the timeframe between the 2008 and 2020 crashes was over 11 years (the longest expansion in history). Britain suffered greatly in the 2008 financial crisis and attempted to do Brexit in an attempt to save its economy. It didn't work at all.
The EU needs to be replaced with the United Socialist States of Europe. That's the only way out.