Which phone do you have? The only phone I ever owned that behaved so poorly was a Honor (Huawei) phone, so I will never buy Huawei or Xiaomi phone personally. They modify the core of Android recklessly and often breaks things.
OnePlus 6T
I never had issues like this with GPM.