Really odd that's happening to you during some battles, @taste1t
This might be a silly question and I'm sure you've checked, but when you double-tap the home button on your Xbox controller to check the battery level is it fully charged? There are some steps below I recommend checking out before jumping into your next game to see if they clear it up. We can't have your controller go out in the middle of a firefight.
Xbox One:
Power Cycle the Console
- Turn off the Xbox One console by pressing the Xbox button on the front of the console for about 10 seconds until it shuts down completely.
- Unplug the console's power cable. Wait 10 seconds.
Important Be sure to wait 10 seconds. This step resets the power supply.
- Plug the console power cable back in.
- Press the Xbox button on your console to turn on the Xbox One.
Clear Mac Address
- Clear the MAC Address: From the Xbox dashboard select Settings>All Settings>Network>Network Settings>Advanced Settings>Alternate MAC address>Clear, then restart your Xbox.
Go to your Xbox Settings and check to see if your controller has the latest Hardware Update.
https://support.xbox.com/en-US/xbox-one/accessories/update-controller-for-stereo-headset-adapter
Hopefully those steps above do the trick. I know it's not ideal, but reinstalling the game might be a good option if it continues to happen. The game files might have been corrupted during an update so it's worth a shot to see if it persists afterwards.
Thank you for the report!