Discouraged by advisor to take courses, is there a way to navigate through this situation?
Audit the courses that you like, i.e., take them without receiving a grade/credit for it. You might not even need to formally audit courses, most professors will let you informally audit them. But as mentioned by others, research takes priority.