I believe it mostly came down to insular comic dude-bros not liking her casting as Captain Marvel and that she was pretty outspoken (the horror!) about wanting more diversity in the movies, fanbase, and press. . This is a pretty good recap. https://screenrant.com/captain-marvel-fan-backlash-brie-larson-explained/