There's no reason for Trixie to stay in Ponyville / Equestria. While she somewhat made up with Twilight (notice in Uncommon Bond, thy were able to plan that game together with Maud and Sunburst, and in the end, they grouphugged), I presume Trixie still has some bitterness and jealousy in herself towards Twilight.
The others of the M6 have lightened up on Trixie as well, as they can be seen in No Second Prances at her show smiling, but they barely have any personal relations with each other and Trixie might still be afraid / hateful towards them for heckling her in the past, though Pinkie mentions buying fireworks from Trixie in S8.
As for the rest of Equestrian population and Ponyville especially, they might not be aggressive towards Trixie because Twilight forgave her, but they still are suspicious of her (as seen in No Second Prances), which might limit her chances of earning bits with her shows. This might have brought her to perform more dangerous tricks.
Eventually, leaving for a land where no one knows her and she can start over and find success in is the best for her, apart from the moral lesson of letting go.