Retirement tax questions

Thank you. I made the excess contributions to Roth IRA in 2024 and not in 2023, because, I had contributed $7000k in Jan 2024 to Roth IRA when my income my low and when I switched jobs to a higher paid job in March 2024, my income went above $150k. Hence the problem. 

Meaning, my income in 2023 was < $150k but was > $150 k in 2024 .

Please help me understand if you think I would still need to amend my 2023 return.

Also, the earnings from the 2024 contributions was $802, it was not a loss. I understand that I have pay tax for just the earnings as I now placed the order withdrew them as well. Thank you