I would start at the beginning.
Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance. The more information you give us the better we will be able to assist you. Thank you.
Environment details? (if you can then see Admin panel -> Dashboard -> Information)
This will show us the version of PHP your site is running. It's entirely possible that you have php8.0-imap installed and that your site isnt running php8.0.