What do you think is going to happen? I tested it out on an ec2 instance just now and it seems to have worked as one would expect.
I don't think using swap as "emergency RAM" makes a lot of sense in 2025. The arguments in favor of swap which I find convincing are about allowing the system to evict low use pages which otherwise would not be evictable.