Typically that is because you are not getting good layer adhesion. You would need to calibrate your printer and your temps for your filament. A "quick fix" would be to print the lids vertically "on their edge" so the hinges and latch are up and down rather then flat on the print bed. This makes them stronger so they can't "snap off". but will need support material to print.