It should be safe to give the valproic acid.
Some drug that needs a high precaution for a patient which allergic to sulfa would be sulfisoxazole, sulfamethoxazole, sulfasalazine, dapson.
There are also some drugs that need to be monitored like furosemide, hydrochlorothiazide, or celecoxib