I wish there was an easy answer but you need to make sure he's as comfortable as possible. Because it seems that he's biting out of fear.
If he's in a enclosure that is too large without appropriate hides then it will increase his anxiety thereby making him lash out.
There's more that you can do if the biting persists but it's a start.