I’m sorry about your grandfather.
Just remember that you are going to face many challenges in life. In hindsight, it might have been best for you to explain the situation to your GC and teachers when you first had to start visiting hospital frequently. Maybe an arrangement could have been made, or they could have helped you manage your time more effectively.