Same problem
My device poco x3 gt 8x256gb miui 12.5.1 id version
Sometimes data connection lost in 4g setting even the signal is power full

I though this is bug miui 12.5.1

Have u tried to flash other version miui?