maybe you were sleeping on it wrong, and that fact was passed over to your dream
might be a laugh to intentionally restrict the blood flow to your arm and see if if happens again (belt, shoe lace, etc.)

actually, that's a dumb idea. Don't do it