Obviously you should not hold your snake for longer than recommended periods because they will get agitated(and I doubt that is the issue) but if you get nervous while holding your snake it will be able to sense that nervousness just like pretty much any other animal and in turn it will make your snake more nervous of you as well.
My best advice it to try and relax and not worry about being bitten and maybe your snake will relax a little more in return.