Hello posting this issue also in the UE forum, please have a look at the link below
https://polycount.com/discussion/231501/ue-4-26-bug-object-id-s-rendering-only-a-2-colors-cryptomatte#latest