Is pickpocketing large amounts of gold in Skyrim bugged?
Solution 1:
This is probably due to your stealth meter changing due to NPCs moving, or dynamics lights touching you or not. The closer you are to being detected the less likely you are to succeed.