Before you begin
I tried every fix possible online, but it turned out that it was the battery. The battery was swollen, and this was causing the triggers to very slightly touch the LB or RB and get stuck. After I removed the battery, everything works perfectly fine now.