The problem on my side was this css rule in the direct html wrapper
break-after: page;
after removing it the error was gone