There’s no (sensible) way to redirect https request to the hot-spot portal in a clean (transparent) way, similar to how http redirection performs. Hence receiving error is normal.
As written, it is not possible to fix this.
However, most browsers now include tricks to solve this problem.
(when they get such errors they connect to some http site to see what happens, or other similar methods)