The actor said he was close to quitting acting before landing the role in the critically acclaimed medical drama.