Well, after trying different methods, I was able to fix it. I share the steps to follow (in my case, for a debian 10 VPS server):
Download version 0.36 of Crystal from the repository: https://github.com/crystal-lang/crystal/releases/download/0.36.1/crystal_0.36.1-1_amd64.deb
Then we need to upload the downloaded file to our server. To do this, we open a terminal in the downloads folder (or wherever the downloaded file is) and use:
scp crystal_0.36.1-1_amd64.deb admin@yourIP:/home/admin (or other directory where you have root permissions).
Then we access via SSH and use the command:
sudo apt install ./[deb_path]
(example: sudo apt install ./home/admin/crystal_0.36.1-1_amd64.deb)
And with that you can install invidious. After you have installed it, you can upgrade the crystal version without any problems.
If you have a local server, I guess you can run the .deb file directly.
I hope it helps.