Hello! I Am Dean. I Was Recently Prescribed Sulfamethoxazole/ TMP
Nervousness is mostly due to anxiety.
Thanks for your query .
Based on the facts that you have posted, nervousness after taking medications for UTI is not due to medications but seems to be mainly due to anxiety.
Get relaxed and continue taking medicines for 4 more days as suggested by your Doctor,
Avoid taking any drugs to get sleep this will get resolved spontaneously.
Hope I have answered your query, please feel free to ask if you have more questions, I shall be happy to help you...
Thanks and Regards.