sudo hostnamectl set-hostname SOMETHINGNORMAL
git clone https://github.com/popey/unsnap
cd unsnap
./unsnap
The first one will set the name behind the @ sign to something not that long. I recommend just usint "PC" for privacy reasons. Often nobody needs to know your device model.
The second one removes snaps and snapd and installs installed apps as flatpak instead. Flatpak is a universal format, similar to snap, came out a bit later but not only Ubuntu uses it. Snap also works on multiple Distros but people dont like it, it is still slow (now just slowing down boot) etc.