Try NAC, seriously. It's the only thing that worked for me and this is coming from someone that will bite off acrylics.
https://www.today.com/health/how-stop-nail-biting-supplement...
If you have a poke on Google Scholar, you'll find the science is quite good on this one.