Hello SIMON98,
My name is Veejay, I'm an Independent Advisor and a Microsoft Teams user like you and I'm here to resolve this issue with you.
You need to make sure that your PC meets the hardware requirements for Teams Desktop App:
https://docs.microsoft.com/en-us/microsoftteams...
You can also try disabling the Script Error Notification. Kindly reference this link:
https://windowsreport.com/microsoft-teams-error...
Disclaimer: The above link is a non-Microsoft website. The pages appear to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
Please let me know if you have any questions or concern.
Thank you