There are also additional options, if your latte configuration is heavily customized:
use your backups
export your layout and import it back when needed
tools like the "plasma customization saver" (plasmaconfigsaver) widget. I tried it long ago when in the mood of heavily changing my theme (to be precise creating several alternatives) and I think it works fine, with a few minor issues (no issues with latte)
I use alias restartlatte='latte-dock --replace &' to restart it. It crashes so infrequently it's almost never used, even though I use latte-dock-git it's been very stable. The only issues that happen are when I open more than 50 windows at a time. It seems like a disproportionate amount of effort to fix something that's not causing much issue.... Crashing frequently to me means daily rather than a couple times a month.