Were you able to run headless without installing snapd? I tried and tried, but there was some shared library dependency that always led to me having snapd installed, and after fighting with it repeatedly I found it easier to switch to Debian.
It’s really disappointing that snapd has even infected headless installs. I loved Ubuntu on headless, and I still use it as a docker base image.