You’re looking for a shorter axle than these, similar to that of a front wheel, probably 100 mm. Check with recent S40 owners but I reckon they are 12 mm axle with 1.25 mm thread.
Not sure how it works but this adaptor could be what you need: https://www.radicaldesign.fr/thru-axle-adaptor-for-bicycle-trailer-2