Hello,
Thanks for reaching out! I'm Microsoft user like you.
Open the Settings -> click on the Devices icon.
Click on AutoPlay -> switch on/off Use AutoPlay for all media and devices. With this switched off,
In case of additional questions, reach out back to me, and I will be happy to help and try our best to resolve your issue.
Best Regards,
Prakash