If you want to use column hiding together with grouping, the sequence to use is:
perform grid group
hide columns
unhide columns
perform grid ungroup
Do not group after column hiding as the grouping itself already internally relies on hiding the grouped column.