We are not able to repro the issue, it's working fine from our end.
we tried with the below sample-
https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-teams-authentication/csha...
Microsoft Teams Version 1.6.00.7068 (64-bit).
If the session has expired due to any intermittent connectivity issues or interruptions, a “500 " appears.