Hey Jackson! I am sorry to hear about your struggle :(
When I realized that I want to leave Amazon, I started to actively look for new opportunities and re-activated my job hunting resources like LinkedIn headhunters, AngelList etc. I have quite a good GitHub portfolio and my current employer contacted me via GitHub.
I did not commit to Hackerrank/Leetcode platforms — I felt pretty strong with my knowledge and skills and didn’t want to waste time.
Did you consider switching teams within Amazon? My manager did want me to stay within the company and suggested to find a different team —I remember it is quite common and not an issue at all.