One frequent but hard to reproduce bug in SwiftUI is being unable to dismiss a basic Alert. I think I've managed to reproduce the issue here. If there is even a little congestion in the main thread, here in the form of a counter the updates every 0.1 seconds, the Alert will fail to dismiss 90% of the time. This level of activity should be nothing remarkable. It will dismiss sometimes but usually does not. See attached project.
Sample project for Alert bug
Feedback case: https://feedbackassistant.apple.com/feedback/14719229
Topic:
UI Frameworks
SubTopic:
SwiftUI