WELCOME TO FISHLORE!
There are a lot of things that could be the issue.
A) An un-cycled tank, read the link as tony suggested if you aren't sure.
B) The tank's just too small and it's damaging him
C) He's getting old
As for the small tank, maybe try rehoming him into a display tank at a reputable aquarium shop, or even better, an actual aquarium. It's never the best to lose a fish friend, but at leasrt he'll grow old and lead a happy life. You could also upgrade the tank, according to the fish info, they need a tank of AT LEAST 250 gallons.
This has probably stunted his growth, which may have damaged his internal systems, making him prone to stress and more likley for disease.
Dependant on how long you've had him, it could be near his time to go. 19 inches is a big fish, and probably an old fish, and signs of listlessness and tiredness are often the first signs that a fish is succombing to old age.
I'd up his water changes, to see if there is an ammonia issue as they are very messy eaters, and dose with Prime to neutralise the ammonia if it is present. I'd look into getting a 250 gallon + tank as soon as physically possible so he can live out his life in full.
Salt, can somes be a stressor towards fish, which, if he isn't used to salt, could be causing him to act out of character.
The best way to raise pH ios by using crushed coral. Get a handful and rinse VERY thoroughly under water, then bury under the substrate, test the pH. If still low, repeat the process until you are satisfied that Spanky has the correct pH for him.
Good luck with him, I hope he perks up
