Self-similar solutions up to flashpoint in highly wound magnetostatics