YW is no different from the usual expressions; it should not sound sarcastic or nagative because, in the original context, it seems more serious. Some one thanks you genuinely; "YW" would sound really genuine. If said in sarcasm, this can result in mistake, and hurt feelings. Also, refer to the context- In formal conditions, "You are welcome" would probably be better. Stay friendly, and sincere, and the responses will be appreciated.
Know more: https://radarro.com/yw-meaning/