If it is not serving a purpose my suggestion would be to delete it. That should correct the spacing you see.
For more vertical management of groups in Bubble this resource is pretty useful https://docs.airdev.co/bubble-development-guide/steps/design
I this this group have some Condition for visible none.
Edit the selected group there will be “Collapse this element height when hidden” to be checked.