You’re going to need an Arduino with more memory or you’re going to have to modify the code so that it uses less memory.
For a different Arduino, try a Mega, that has 4 times more memory than an Uno. Modifying the code could be complex, it might be easier to just go with the Mega. If you do use a Mega, you might need to move some pins around and modify the code a bit so that the Mega knows where things are connected.
Just as a sidelight, I recall about 8 or 9 years ago working with a project based on an Arduino Uno, and I started getting strange results when my code got to using much over about 30,000 bytes – I should have had a bit of room left. I was able to reduce the code size using some various “tricks” (especially rewording strings to be shorter, and eliminating a lot of stuff going to the serial monitor), but it took some effort.