Press Win+X to open Disk Management: does the flash drive show up? If yes, assign it a drive letter. If no, check Device Manager > View > Show hidden devices for unknown or greyed-out entries.
Press Win+R, run services.msc, and make sure Shell Hardware Detection and Plug and Play are Running and set to Automatic.
Roll back the latest Windows update (Settings > Windows Update > Update history > Uninstall updates), then pause updates for a week.
Repair system files: run DISM /Online /Cleanup-Image /RestoreHealth, then sfc /scannow.
Test with a new local user profile. If USB works there, your main profile is corrupted.
Power settings: turn off Fast Startup and USB selective suspend.
Black screen: set the screen saver to None, press Win+Ctrl+Shift+B, and reinstall the Intel graphics driver.
Hardware check: hold Volume Up while powering on to reach UEFI or boot a recovery USB. If the drive is recognised there, the ports are fine and it’s a Windows issue.
If the drive isn’t recognised in UEFI either, get warranty service.