I would strongly advice you to consult your GP before you wish to embark on this journey. This is the internet and we cannot give you medical advice on here because we do not know the specific details of your condition. What kind of condition, how bad is it, etc. You could tell us those details, but with the exception of a select few, we're not doctors and not qualified to tell you if it's safe to consume ayahuasca or DMT without your heart blowing out.
Please be very careful, it would be most tragic if you're under the assumption DMT would be safe to consume and end up in an emergency room (or worse) because of that.