The error you are reporting may come from the “resume” hook in /etc/mkinitcpio.conf. If you want to disable hibernation you need to remove the resume hook.
But I want to make a general statement regarding swap on SSD. I believe a generic statement like the one you are referring to is wrong:
Just a note, it’s not recommended to make a swap partition on an SSD, this can damage the medium.
If you have a laptop and want to hibernate you need swap. Either file or partition. And because most laptops these days are coming with an SSD, discouraging swap on SSD would simply break hibernation for EndeavourOS
There is no evidence that swap on SSD is dangerous. This warning is just an academic exercise. For old SSDs (5+ years) the warning might have some truth because such old SSDs had much less TBW and not so good controllers to cope with bad sectors. But for modern SSDs I would not be concerned about swap on SSD.
This warning is pretty unique. I am not aware of any other Distro giving such a warning. Not even Arch Linux.
From a performance point of view the SSD is the best place for swap.
If you do not need hibernation and do not want swap on the SSD you could try zram resp. zram-generator. I am using it on my desktop PC to have some emergency swap available and it works well.
its always a good idea to have swap, even if you dont use it frequently. The system will crash if you run into an OOM situation as while windows tends to handle OOM in an alright manner Linux usually just crashes the system when it has nowhere to put things in an OOM situation. Running without even a few GB of swap can be fine as long as nothing misbehaves and you dont run out of memory but having it and not using it is better than not having it.
another thing to keep in mind is that Zram/Zswap is not a replacement for a swap file/partition. In high memory pressure situations its frequently not able to handle giving the system long enough to recover which is why still having a file or partition is still a good idea.
I would also like to add that no matter how large the size of the physical RAM is, the listed software solutions (swappiness settings, zram, etc.) cannot replace a swap partition or swap file for memory-intensive operations.