A setting for "Optimized battery management" ("slow down option" in the battery settings) might solve that "issue". It may be indicated that the iPhone can suddenly fail if you deactivate it.
Making the world simple again...
Apple: But we know what's best for you. By the way, our records show you haven't had your morning Kool-Aid yet. Here you go *slides cup across table*