If I ever encounter device issues in Windows, say to my keyboard, printer, Bluetooth, USB, or audio playback I use the Microsoft Support Diagnostic Tool (MSDT) which can run diagnostic packs to ...
If the Send optional diagnostic data is not turning off, there could be an organizational level configuration at play here. Check this post to know more about the issue.
Microsoft is once again blocking the ability to bypass a Microsoft Account when setting up a Windows 11 PC for the first time.