Hi,
If you have a nocturnal emission not caused by thoughts you had during the day, it's not your fault! You have nothing to be ashamed or worried about. The body has to naturally remove substances it doesn't need, like urinating.
I agree that having one on Y"K sucks, but the week of R"H? Not a problem. To feel better, say Tikul HaKlali and go to the mikveh before R"H.
If you think lustful thoughts all day and then have an emission that night, that's a different story. Then, you are doing it to yourself, not HaShem.
Your brother in recovery,
Momo