Customer Login error when logging in while items in Cart

Hi all, I’m getting a page render issue as soon as I login as a customer on the standard login functionality of our online store. The page does not render, but seems after refreshing the customer is successfully logged in. We’re using Horizon (Atelier) Theme v2.0.3.

This seems to only happen when a customer tries to login, when having items in the cart. This also seems to happen only on Safari (mobile and desktop) so far, and not on Chrome. Potentially some bug or conflict when merging cart functionality. How could I potentially solve this?

We’ve identified the issue, where the culprit was in the account-actions.liquid file (under snippets). The original code was causing an issue by adding a section template id in login URL which we’ve amended with some help and everything works again.