The error message "Connection problem or invalid MMI code" comes on your phone for a variety of reasons. The most common cause is a problem with the carrier or issues with the SIM authentication on the smartphone. The issue is most common on dual-SIM phones, although it can also happen on other phones.
https://techcrazee.com/connection-problem-or-invalid-mmi-code/