The following commands seem to work, at least most of the time:
sudo mmcli -m any --reset
sudo service NetworkManager restart
So having a script that checks if the cellular data connection has stopped working and runs the above commands in that case, might work. (But still only as an ugly workaround since all ongoing connections are probably lost when that happens, not very nice.)