I doubt it's ignition switch to BECM or anything like that. If the ignition switched power was dropping out, then there would be a lot more not working than just the engine cutting out.
HEVAC, Blower motors etc for a start would all shut off - which there's no mention of that happening - just...