Thank you for the response. I've just filed bug report FB20790194.
I would also like to add that this doesn't only happen during development. I can reproduce it pretty easily on release builds. If I archive my app and install it to /Applications on a non-development device (macOS 26.0.1) and then start repeating the following:
launch the app
mount
unmount
kill the app
After a few attempts, mount would start failing again due to the same error. I've included this information in the bug report.
Topic:
App & System Services
SubTopic:
Core OS
Tags: