Go to snippets/product-form.liquid file and add code:
https://i.imgur.com/qkFj89E.png and https://i.imgur.com/U9Bnb8v.png
It will work fine, you don’t need to remove ‘novalidate’.
Hope it helps!
If my answer can help you solve your issue, please mark it as a solution. Thank you and good luck.