After you file

Amend 2022 return and pay the amount due.  When the IRS contacts you about the penalty, explain what happened and ask for the penalty to be waived.  In your circumstances, it is about 100% chance that it will be waived.