Access is denied. (5) message in DOpus 12 with OneDrive but not with File Explorer

You could try a Process Monitor log to see if that reveals which exe or DLL is locking the files:

But access denied generally indicates either permissions or antivirus is preventing access. You'd tend to get a different error (file in use / sharing violation) if other software had the file open in a way that prevented it being opened again for reading.