Unable to sign APKs with min SDK 23 without the legacy key

minSDK28?
I need to install my old application (APK) as an AAB file. However, this warning came:

"Unable to sign APKs with min SDK 23 without the legacy key. Ensure that your App Bundle is having minSdk version greater than or equal to 28.
Your APK is rotated with V3 signature scheme which is not allowed if your minSdk version is less than 30."

What to do?