The latest versions of MainWP (Dashboard and Child) are 4.3.1 (still in beta), which should give you PHP 8.1 compatibility. For oolder versions you should use PHP 8.0. But I can recommend the beta version, as it doesn’t give me any errors.
Please check this post for the beta version:
WordPress® is a registered trademark of the WordPress Foundation, and WooCommerce® is a registered trademark of WooCommerce, Inc. MainWP is an independent product and is not affiliated, associated, or endorsed by the WordPress Foundation, WooCommerce, Inc., or Automattic Inc., except where noted under the Jetpack® API and Trademark License Agreement. All product names, logos, and brands are property of their respective owners and are used for identification purposes only.