Retirement tax questions

Hi,

I withdraw the excess amount and the earnings last month. I am filing a substitute 1099-R through Turbotax. Should I deduct the excess contribution from my W2, line 12a? I know I will receive 1099-R for 2024 tax year. What is the proper way to fix the issue? Thanks.