recently I asked the forum for help to build a 12v li-ion battery undervoltage protection circuit and some kind members solved the issue (click to preview). however, (user @Prathik Prashanth) mentioned a very clever point that you don't usually take into account when simulating a circuit:
When you are building an undervoltage lockout circuit, you need to give it some hysteresis. When the undervoltage protection kicks in, the battery gets disconnected and stops supplying power to the boost converter. This causes the battery voltage to rise slightly and the undervoltage circuit will no longer detect an udervoltage and it reconnects the battery again which causes its voltage to drop and the circuit to cut off power. The circuit will cycle like this. Adding some hysteresis will prevent this
