Christian
Thanks for your report. Yes, the "read-only" .dat folder issue has been previously reported. The previous report traced the problem to files being backed up to Google Drive. In your case, the files appear to reside on OneDrive and presumably are to be shared
by students for their practical.
You don't mention whether the problem exists when the Distance project in question is
not on OneDrive. I speculate the problem does not exist when OneDrive is taken out of the equation. I understand the practicality of using OneDrive for practicals, however, I think the prudent strategy would be to have the exported .zip files for the
students to access from OneDrive. They would then save the Distance project to their local drive and carry out their analyses.
This side-steps having .dat folders on OneDrive that become read-only.
Let us know if this resolves your difficulties.