264K is plenty for many things you can do with that kind of device.
But why? It (well, the Pico board at least) already runs Python ;^)
This might be of interest:
https://blog.adafruit.com/2022/03/10/linux-written-in-python...
It's a clickbait title, it's actually more of a busybox-like thing giving a linux-like shell from what I can tell. I haven't looked into it.
FUZIX, which I think is based on Doug Braun's even earlier UZI (Unix Z80 Implementation), might also be of interest:
https://www.raspberrypi.com/news/how-to-get-started-with-fuz...