Even when putting them in a queue it messes up the gapless playback most times
I have the exact same issue. Gapless playback works just fine for files in the Spotify catalogue, but there is a gap between all tracks when playing local files. I have Crossfade and Automix disabled.
OS: Windows 11 Enterprise, 10.0.22631 Build 22631
Client: Spotify for Windows (64 bit) 1.2.66.447.g4e37e896