It appears as though you may have a pinched nerve which is being compressed during certain position. Your best bet is to see your doctor for exact location for proper treatment. If left untreated could cause further damage as well. Generally a Nerve conduction velocity test will determine this.
Hope this helps, If you need anything else please feel free to ask. If you found this helpful don’t forget to click the *accept* button!