AR Foundation is only an interface for AR Functionality. It does not implement AR (unless you are referring to XR Simulation specifically). For starters we would need to know which platform(s) you are building for, and your XR Plug-in Management settings, before we could reason about this.
Looking at this a second time, I wouldn’t expect these to work in this order. ARSession is the root of all platform lifecycle. I think you might need ARSession alive first before you enable XR Origin, otherwise I’m not sure how XR Origin could attempt to get an origin pose. Origin of what, if there is no ARSession?
Hm I see. Yeah I don’t have any advice that I can you here other than please file a bug so that we can investigate this issue: Unity QA: Building quality with passion