It's so hard to lose weight!

For me it's way to difficult to lose weight, I can't exercise because of heart problems, I know HR normally goes high when exercising but mine shoots when mopping or sweeping, Dr. has no answers as to why so I decided not to go see him anymore, he said I need to close weight but I can't exercise. Any TIPS? Diet changes? Thanks!