Good news - I probably managed to solve Gboard’s inconsistent behaviors due to its autocorrect.
I published the patched version on beta channel on Google Play Store.
You can test it out from here:
https://play.google.com/apps/testing/info.inkdrop
- Version: 3.2.0
- Version code: 36
It works fine at least on my device (Essential Phone, Android 9).