The error is raised in the old THCudaMalloc call here, so I guess that your current (CUDA) setup is not working correctly.
It’s a bit hard to tell what the reason might be, as 0.4.1 was released in July 2018.
The probably better approach would be to try to update the repository and make it compatible with the latest stable release. Alternatively you could also try to use an old docker container from 2018 with CUDA9.0 and try to get this old version running there.