"I am stressed, but I don't feel like discussing it. Don't worry, it has nothing to do with you," would be a good, comprehensive answer that doesn't dig too deep. It acknowledges the truth and validates the other person's sense that you are stressed, it states your desires of what to do about it, and it helps assuage a partner's nervous feeling that they/something did may be the thing that's stressing you.
I can't stand when someone says, "It's nothing" when there's clearly something wrong. It's a type of gaslighting, and makes me struggle to put together their words with my sense that something is wrong. There's nothing wrong in wanting not to talk about something stressful, but that's not an excuse for dishonesty. If a partner can't handle that, they're not ready for an adult relationship.