The Killing Zone, Second Edition: How & Why Pilots Die https://www.amazon.com/dp/0071798404/ref=cm_sw_r_cp_api_i_4Mr6CbNZCBHET
This is a good read and addresses your question.
That’s exactly the way you should be thinking. Do yourself a favour and get this book to help realise you are always going to be a learner. I can tell just by the way you are thinking you have not read it, or anything like it.