After you file

file an amended return. since the excess contributions were not withdrawn until after 5/17/2021 you will owe the 6 % penalty for 2020. any income withdrawn will be taxable in 2021. did you inform the administrator that you were withdrawing an excess contribution so it could figure the amount of income that needed to be withdrawn?