I have a wrapfigure, and as shown on the image below, the image and the caption go outside of the page and overlap the space where the page number is. Is there a way to fix it?
Minimal reproducible example (with lipsum text and blank image)
\documentclass[a4paper,12pt]{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian,ukrainian]{babel}
\usepackage[a4paper,top=1.3cm,bottom=2cm,left=1.5cm,right=1.5cm,marginparwidth=0.75cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[OT1]{fontenc}
\usepackage{graphicx, wrapfig, float}
\usepackage{subfigure}
\usepackage{lipsum}
\graphicspath{ {./images/} }
\begin{document}
\lipsum[150]\lipsum[150]\lipsum[150]\lipsum[150]\lipsum[150]\lipsum[150]\lipsum[150]\lipsum[150]
\subsection{subsection}
\begin{wrapfigure}{l}{0pt}
\centering
\rule{8cm}{8cm}
\caption{image}
\end{wrapfigure}
\lipsum[150]
\end{document}



\begin{wrapfigure}{L}{0pt}withLnotlallows the figure to move at a page break. Or simply move it in the source – David Carlisle Feb 01 '23 at 20:25Lworks here (image goes to next page) – David Carlisle Feb 01 '23 at 20:40height=...on\includegraphicsto fix any partcular case, – David Carlisle Feb 01 '23 at 20:44