Three-dimensional studies of helical equilibria and magnetic surface breaking due to the finite beta effect