I differ from what SpartanMaker says, I wouldn't try any more of the options that are out there. Obviously you first need to recognize that obesity is a disease and it never goes away. You tried to starve yourself to death and the body will automatically save every morsel you put into your body and store it as fat, especially on a 300 calorie diet. Increasing the calories is not necessarily the fix either, you need to look at the foods you are eating. Is it protein heavy or are you still eating salads, which are carbs by the way? Are you thinking that a baked potato is a veggie, it is not it is a carbohydrate, then add all the stuff you put on the potato. Diet wise, you may be choosing the wrong foods. And certainly the amount. You passed out probably because your glucose levels went into the basement with such a low calorie intake.
I agree with SpartanMaker, and seek out a Bariatric center that has a whole host of options. Surgery is a tool that the obese person uses and it is a life long commitment to make lifestyle changes. You may need to see a therapist and nutrition expert both to help you, and maybe they have other options other than going straight to surgery, but for certain I feel you need better education on what is an appropriate "diet", and not all "diets" are really diets but ways to spend more money that is just wasted. You obviously have the willpower and stamina to take hold of a new life, it won't hurt to inquire. I would also urge you to watch some of the YouTube videos from BariNation, they have Podcasts with bariatric physicians and other healthcare providers every week and most recently there was discussion about Obesity being a disease and using something other than weight or BMI (Body Mass Index) to determine if someone is obese.
My plan has always been to go the cautious or conservative route first. In my case I jumped right in and happy for it. I had an excellent surgeon and team that all worked together to ensure I had a good experience and did. Never had any pain with my surgery, and have had good results so far and today is Post op week 3, day 1.
I wish you the best in your journey to seek out further information and a good bariatric group!!