A protective factor is something that helps to prevent problems. A risk factor is something that helps to create problems.
Mental health problems are complex issues and are never the result of one risk factor. Someone who has several risk factors could have more resiliency towards problems than someone else who experienced less risk factors. It is important to remember that each individual person experiences stress, pain, and risk in different ways.