Hello~You may have slept on that arm a certain way which could have caused the sharp pains.
Also, you very well could have some misplaced vertebrae in your neck and upper back, if this is the case, you will have these symptoms. I recommend seeing a chiropractor, he/she will take an x-ray of the area and this will show what areas need attention.