There is a bug already raised for this similar issue and engineering team is working on the fix. We will inform you once we get any further update.
Also, you can track this issue for fix updates at github.com/MicrosoftDocs/msteams-docs/issues/7626.
Thanks,
Prasad Das
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.