Yeah, I think I'd stick to, "Have an easy fast," if you're not Jewish. Your friend isn't wrong, but it's probably safer to stay out of that lane.
Oh, yes, and "May their memory be for a blessing," is the traditional response to hearing of a death, rather than "Rest in peace," the latter being a Christian formula. It's not rude to use it if you don't know, though.