i don't think nitrate at 40ppm would be toxic to anything but the most sensitive of fish species, definitely not a large hardy pleco like that. even .25 ammonia will not be fatal only decrease a fish's health long term. i would keep searching for another culprit, or if none of the other fish seem stressed it is always possible the pleco had some kind of congenital disease.
sorry for your loss.