In my experience, creating onlineMeetings does not require a subscription or a license. Based on your error, I think you may be using a personal Microsoft account.
Check the documentation the above API call create onlinemeeting is not supported with personal Microsoft account in delegated scenario( /me
context), hence you're getting the error. Test it with your azure ad work/school account.
If an Answer is helpful, please click "Accept Answer" and upvote it.