Welcome and it's great to see you are doing things right!! I would shoot for closer to 20ppm nitrate, but 40 isn't the end of the world. Wish I could help with that prolapse looking situation. I'd feed lightly, up the heat and aeration, keep nitrates as low as possible with water changes...