this is a bug Apple has added in a recent macOS version, you can find a workaround here:
I think it is fixed in macOS 26.6