Pain is a complex protective mechanism. It is an essential part of evolution that protects the body from danger and…