וידר יעקב נדר לאמר - What is the לאמר, Yaakov is not talking to anyone else? The Midrash comments the לאמר is to future generations, Yaakov was instructing the future that in a time of צרה they should accept upon themselves נדרים. Tosfos Chullin (2b) cites this Midrash as a source to be the exception to the rule that normally nedarim are advised against, in a time of צרה it is allowed (Piskay Tosfos says encouraged.) This allowance is cited in Shulacha Aruch YD (203:5) and Aruch Hashulchan encourages the practice. (The Sefer Agudah on Nedarim 9a cites an opinion that even at a time of צרה, one should not accept nedarim upon themselves, it seems to fly in the face of this Midrash, see Rashba and Bircay Yosef 203:5.)
Rav Yosef Engel (Beis Haotzer כלל א אות ז ד"ה וע"ע מ"ק) questions why we don't apply the rule of אין למידים מקודם מתן תורה here? In truth the Shittah Nedarim (9b) suggests this approach as to why we can not derive anything from the neder of Yaakov but he rejects it. He does not explain why he rejects the peshat?
Why is it allowed or encouraged to make a nedar at a time of distress? We find a similar concept when it comes to prayer that the Ramban (on Sefer Hamitzvot #5) entertains that at a time of צרה this is a mitzvah to pray. Rav Moshe Feinstein (OC volume 2 #25) says this concept of praying at a time of צרה is part of עיקרי אמונה to demonstrate one's trust in G-d that only He takes care of one's problems and therefore will be an obligation even on a gentile. He adds even if prayer at a time of צרה is Rabbinic that just means it is not an obligation of prayer, but the obligation of emunah does obligate it. The Rambam also agrees that there is a unique obligation to pray during a time of distress (see beginning of Laws of Taanis) דבר זה מדרכי התשובה הוא שבזמן שתבוא צרה ויזעקו עליה ויריעו ידעו הכל שבגלל מעשיהם הרעים הורע להם. According to the Rambam it is part of the obligation of teshuva.
In this light, accepting a neder during a crisis operates on the exact same principle. Because it is an expression of fundamental faith or repentance, rather than a technical halachic statute, it is not a pre-Sinai practice subject to change after Matan Torah, but rather an eternal, foundational obligation (see עד"ז in Teshuvot Be'ar Moshe volume 1 #57.)