If the issue is only happening while screensharing, not during the regular teams call then I would suggest checking Windows HD Color Settings from PC (search for HD Color from Windows search icon and left bottom corner) and make sure Stream HDR video is turned off.
How to fix teams crash on screen sharing
My team's is getting crashed when sharing the screen. Captured the below application exception tracked in Event Viewer.
Faulting application name: Teams.exe, version: 1.6.0.24873, time stamp: 0x63f7d881
Faulting module name: ntdll.dll, version: 10.0.19041.3393, time stamp: 0xfeef31d3
Exception code: 0xc0000409
Fault offset: 0x000000000008c67f
Faulting process id: 0xeb8
Faulting application start time: 0x01d9eb2e9e9cc5d9
Faulting application path: C:\Users\umaven.REDMOND.000\AppData\Local\Microsoft\Teams\current\Teams.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 144903cf-450a-4f74-9c7c-29ca3990c1e4
Faulting package full name:
Faulting package-relative application ID: