I recently saw a bunch of those warnings when booting Arch Linux:
$ systemctl status swapfile.swap | grep -i invalid
Jun 12 12:34:25 m604 swapon[22623]: swapon: /swapfile: swapon failed: Invalid argument
This was weird since the swapfile worked fine before and the file existed and had secure permissions: