Sorry, in retrospect, this could be an Android 13 update issue. I've just had this occur with another app pulling up the share sheet. The OP and I might be on the very same OS update here
I sorely miss the hardware features from my previous phone, like a notification LED, MicroSD card slot and headphone jack, but I can't go back to a phone where I can't re-lock my bootloader after installing a custom ROM like CalyxOS or GrapheneOS.
Sorry, in retrospect, this could be an Android 13 update issue. I've just had this occur with another app pulling up the share sheet. The OP and I might be on the very same OS update here