Others have given the most important advice, to seek help and address your mental health as first priority asap. If you had crushing chest pain and were short of breath, you'd prioritize that, right? This is no different, simply a different organ (your brain) is the cause, and not your heart. Mental health issues are nothing to ignore or be ashamed of.
When that is addressed, I hope you will realize that potential or actual failure of one course has little to do with intelligence. As a professor, I respect my students who try their hardest whether they are my strongest or weakest student. When some of the fog of depression clears, I hope you will explore all of your options, like scholarships, signing a contract with a hospital, and loans. You may not even need these noptions. Have a frank talk with your mother. Most people are clueless that nursing school is more difficult than many degrees. I would also suggest a positive chat with your instructor, along the lines of "I know I can succeed. Today, I'd like to teach a patient about x, would you be willing to observe?" Make a plan of action. Don't think of it as just women's care. A post op c-section is a surgical patient! Most of the same risks as any surgical patient. Review the basic teaching for postpartum. Most of my male students enjoy postpartum more because they are more comfortable providing education, and if a male partner is present, can also teach him. For example, learn some basics. How often should baby eat? Pee? Poop? Does breast-fed poop and bottle fed poop look different? Go in and ace it. Each time you enter the room, give a small piece of relevant information. Giving the first bath? Tell family about temperature regulation and skin care. Bringing diapers? Talk about expected voids and stools. Giving immunizations? What are they for? Etc
Get assistance with your mental health on an ongoing basis, learn positive coping and stress reduction, then go forth and shine. You are a young fellow and will soon be independent. Start building the skills to succeed and to cope with stress and mental health now, and go show your instructor your capabilities. The world has a funny way of looking really dark at times, often just before you learn a big life lesson. A failure only has the ability to dent your self esteem, don't forget who you are in the process.