I have finally found the correct solution to this issue. It requires adding a Time Machine exclusion to the
com.apple.xxx in your error messages. Here are the instructions:
1. The Terminal app will need full disk access in order to do the "tmutil addexclusion -p" command, so add the following entry to System Settings -> Privacy & Security -> Full Disk Access:
/Applications/Utilities/Terminal.app
2. Use this command to get the error messages from Time Machine:
log show --info --style compact --predicate '(subsystem == "com.apple.TimeMachine") && (eventMessage like[cd] "Failed * acquire device lock assertion*")' --last 24h
Here is the an example of the errors I had:
2025-07-29 00:06:02.716 E backupd[302:1e0295] [com.apple.TimeMachine:FileProtection] Failed to acquire device lock assertion for '/Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/Mac mini/2025-07-29-000400/Data/Users/admin/Library/Daemon Containers/98A60FC5-070E-445D-AA12-296B81A11662/Data/com.apple.milod/milo.db-wal' (assertion state: <dropped>), error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
2025-07-29 00:06:02.717 E backupd[302:1e0295] [com.apple.TimeMachine:FileProtection] Failed to acquire device lock assertion for '/Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/Mac mini/2025-07-29-000400/Data/Users/admin/Library/Daemon Containers/98A60FC5-070E-445D-AA12-296B81A11662/Data/com.apple.milod/milo.db-shm' (assertion state: <dropped>), error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
Notice that the
com.apple.xxx directory in my case is com.apple.milod, and it is located at /Users/admin/Library/Daemon Containers/98A60FC5-070E-445D-AA12-296B81A11662/Data/com.apple.milod
3. Using the path to
com.apple.xxx in the error message, add a Time Machine exclusion for this path to the
com.apple.xxx directory:
In my case, the command would be as follows (don't forget the \ before the space in Daemon Containers):
sudo tmutil addexclusion -p /Users/admin/Library/Daemon\ Containers/98A60FC5-070E-445D-AA12-296B81A11662/Data/com.apple.milod
You should see that the exclusion was added successfully by going to System Settings -> General -> Time Machine and clicking on the Options button.