Try adding code to enable brownout reset. It can't hurt anything, might fix your problem, and if not, you can tell us so we can try to narrow down the root cause of the issue:
Try adding code to enable brownout reset. It can't hurt anything, might fix your problem, and if not, you can tell us so we can try to narrow down the root cause of the issue: