Device shutdown after playing with buttons or ptoled command

Hello all,

Got my pair of pi-top[4] DIY edition on Thursday and I managed to port my project on it. However, I found the device might shut down after playing with buttons or after using ptoled command. It looks like the device power off process is triggered (normal shutdown) but it comes surprisingly and does interrupt my usage.

One thing to note is I do use my own OS instead of pi-topOS but I did update my EEPROM config and I installed the pi-top support package according to this MagPi article.

Before I flash and try pi-topOS to compare the behavior, does anyone have a clue about what might be wrong?

Thanks!