Oh dear - the week or so before your heart surgery (and later, before your knee surgery) are gonna suck :(.
My knee pain was really, really bad about 2 years ago… and I had to stop the NSAIDs before my gallbladder surgery. Tylenol barely touched the pain. When I spoke with the gallbladder surgeon right before surgery one of my biggest question was “when can I restart the NSAIDs???”.