Ariana Grande explained how she invented "triggers" to prevent her own "pain" from influencing her performance in the film