To check power supply issues, via a ssh terminal you can do:
vcgencmd get_throttled The response should be "throttled=0x0"
dmesg -T Look for "Under-voltage detected! (0x00050005)"
vcgencmd get_throttled The response should be "throttled=0x0"
dmesg -T Look for "Under-voltage detected! (0x00050005)"