Answer
The main reason for Josep Maria Bartomeu's resignation was the Barçagate scandal, in which the club was accused of hiring a company to create negative social media campaigns against players, former players, and potential presidential candidates. The scandal led to widespread criticism and ultimately resulted in Bartomeu's resignation in 2020.