You say you've had him for a year or so....does that mean he's just about a year or so old? Could be a bit of restlessness coming on with sexual maturity as well. Either way though...snakes can have "moods" and bad days or just be weird sometimes for reasons we'll never know.

Best thing is to just let him be for awhile and observe with as little intrusion as possible.