Exit game at certain frames per second?

So this is my final, the bug is that sometimes when i start up the game, the delta second glitches “greater than 0.18”. Then sometimes when i start up the game, its perfectly normal, meaning when i get into 5fps, that print text value shows 0.18, which makes the game auto quit. And that good, all i want it to fix this start up bug.