The first thing I'd try is simply truing the wheel and see if it is acceptable.
I'm seeing the WTB i19 rims aren't too expensive.
WTB ST i19 29er TCS Tubeless Compatible MTB Bike Wheel Rim 32H Hole NE | Random Bike Parts
Or, even complete wheelsets.
WTB TCS i19 MTB Wheelset 29" 32H QR15 135mm *Take-off* | Bikewagon
Rebuilding would be a good project.