The generate_after_primary_content_area hook is not really working since moving to Flexbox. Indeed the hook display the content in a column (next to the main area) instead of below…
you will need to hook your content within a DIV ( if it doesn’t output one ).
Then use some CSS, first to make the flexbox wrap and then give your hook element a width like so: