I would try in environmentoptions.xml
There is a section
<Desktops Count="..." ActiveDesktop="....">....
That is (at least one of / not sure of others) the place where layout is stored.
You may find the "ComponetList" in it. Or possibly the problem is its absence.
Can you make a copy/backup of the broken file please? And attach it to a bug report please.
i broke it again

Can't find bug report section so i leave bug report here.
Two attachments "broken_environmentoptions.xml" and "working_environmentoptions.xml";
Broken one is one that broken. And working is one is like new one i made after i broke lazarus.
Bug is related to docker i guess. I accidently undocked source editor and then tried to dock it back and i closed it or it closed itself but i got error and lazarus never start again.