We're on WHMCS 9.1.1 with a child order form based on nexus_cart (no core edits). Two reproducible findings that may help others in this thread.
1) Intermittent "An error occurred. Please try again." in the order summary
Happens on cart.php?a=confproduct&i=1 when the cart already holds another item. It is not deterministic: a scripted Playwright run (fresh session each time) gave 6 failures in 28 attempts, and 0/30 with a previous revision of our own templates — so it looks timing/state dependent rather than a template bug.
2) The cart pointer disappears from the session
A temporary read-only hook logging the session at ClientAreaPage showed: right after the page renders, the session has the cart with 2 items and the pointer key default_nexus_cart_sid. When the page's own XHR runs (POST /cart.php with ajax=1&a=confproduct&calctotal=true&configure=true&i=1&billingcycle=monthly), the session has neither cart nor default_nexus_cart_sid — and one of the parallel SPA requests (/api/v2/store/products/{id}) executes with an empty session. Afterwards tblcarts gets a brand-new, empty cart row, which explains the "empty cart" symptom.
Not reproducible with curl (same sequence, same headers, sequential and parallel). Only in a real browser.
Related symptom: DELETE /api/v2/cart/{tag}/items/{id} returns 200 but the item stays, and item IDs seem to change between reads.
Question for WHMCS: is there a supported way to keep the cart pointer stable across parallel SPA requests in 9.x? Is ApplyCartApi meant to be enabled by default? Happy to share the full reproduction steps.