You can refer to my step-by-step guide which will help you block only the USB Drives without blocking the Keyboard, mouse, or headphones: https://cloudinfra.net/2-ways-to-block-usb-drives-using-intune/. Please let me know if it helps or if you have any further queries.
Alternative link: https://techpress.net/3-ways-to-block-usb-drives-using-intune/
---If the response is helpful, please click "Accept Answer" and upvote it.---