Support for infinity intervals was added in PostgreSQL 17.
Check out the release notes.
With this version, your code works: https://dbfiddle.uk/lRKTMLZ3