See https://github.com/opengisch/QField/issues/3830 and https://github.com/opengisch/QField/pull/3833.