Please download this action. And run it.
https://yadi.sk/d/IFn5lyAW9Z5Biw
It will create a file. Will make 9 layerComps in it and offer to save. Save it.
Note that the layerComps in file goes in order.
Close the file and open the saved one.
It will have some duplicated layerComps. I often duplicate 2 and 2. This is because Photoshop created them with the same ID. If you quickly create layerComps, then they can create the same ID and everything will be messed up.
A bug appears even in CC2018.
There is no bug in CS6.
Please confirm.