Actually as in your show(...) method you already have a Course instance you will need to "lazy" eager load these relations:
public function show(Course $course)
{
$course->load(['instructor.user', 'lessons.units', 'students.user']);
return view('courses.show', ['course' => $course])
}
Reference: https://laravel.com/docs/8.x/eloquent-relationships#lazy-eager-loading
I am guessing most of the relation names. Also I removed the $instructorname assignment as you didn't use that variable anywhere.
Hope it helps.