GOG shared a clear statement on digital ownership after Sony announced the end of physical discs.
They said that even if a game vanishes from the GOG storefront, it never leaves your library. This is how purchased games should work.
“Even if a game vanishes from the GOG storefront, it never leaves your library. Exactly as digital ownership ought to be.”