From compact localized states to many-body scars in the random quantum comb