Javier MM could you try the following: in the file where the text shifts to the side while editing bring up the overlay and tap the 4th icon on the bottom. (scale mode) cycle through all the scale modes (fit to page, half page, ect...) go back to your preferred scale mode and try editing the text again. I saw the shift on my Samsung and after I have done this the inserting and editing of the text was fine. Maybe this helps.
Samsung Galaxy Tab S7 FE Android 12
Samsung Note Pro 12.2 LineageOS 14.1
Huawei Media Pad M3 lite Android 7
Samsung Note Pro 12.2 LineageOS 14.1
Huawei Media Pad M3 lite Android 7