you have a choice. leave the excess in and pay a 6% penalty. then in 2022 reduce your contributions to eliminate the excess otherwise you'll pay another 6 % penalty
or
by the due date of the 2021 return remove the excess + earnings thereon. contact the custodian/trustee to do this so they can compute the income that needs to be withdrawn and issue the correct tax forms