It sounds like you're looking into playing on the Yuzu emulator. Since that collection was a limited-time release, emulation is a popular way to keep those classics alive.
Be careful with "Free Download" sites for game ROMs, as they are often packed with malware. It’s always safer to rip the files from your own physical copy if possible.
3D All-Stars generally runs well, but users often look for "60 FPS mods" for Super Mario Sunshine or resolution scalers to see Mario Galaxy in 4K.
To run the game legally and smoothly, you need the prod.keys and title.keys from your own Nintendo Switch, along with the game's .xci or .nsp file.