is the battery low(?) if not I would spend much time on the glitch.
There are other ways to check your battery level if that is the issue
To be proactive you can file a bug report / submit your Apple Feedback here: Product Feedback - Apple
Verify your software is up to date…
The current stable release of Sequoia including bug fixes, security updates is macOS 15.4.1
Keep your Mac up to date - Apple Support
Keep your Mac up to date - Apple Support
The current stable release of iOS including bug fixes, security updates is iOS 18.4.1
Update your iPhone or iPad - Apple Support
if you think there is an bigger issue—
Put your iPhone in diagnostics mode - identify potential hardware and software issues
How to put your iPhone in diagnostics mode - Apple Support