It's highly unusual for a PS3 controller to shut down specifically when you click the right analog stick (R3). This isn't a documented design flaw or common issue. If you're experiencing this, here are the most likely causes and how to fix them.
Note: Always consult the official PlayStation support site for model-specific guidance before attempting hardware fixes.