Yes this happens throughout the entire thesis.
Here is a minimal working example of my document. Thank you.
\documentclass{utmthesis}
\usepackage{graphicx}
\usepackage{array}
\usepackage{url}
\urlstyle{same} %%to make url doi font style uniform with the text
\usepackage{enumerate}
\usepackage[pages=some]{background}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{subcaption}
\usepackage[cmex10]{amsmath}
\usepackage{amsfonts}
\usepackage{natbib}
\usepackage{xpatch}
\usepackage[labelfont=bf]{caption} %%for bold caption labels for figures and tables
%\usepackage[section]{algorithm}
%\usepackage{algorithmicx}
\usepackage{algpseudocode}
\renewcommand{\thealgorithm}{\arabic{chapter}.\arabic{algorithm}}
\xpatchcmd{\algorithmic}{\setcounter}{\algorithmicfont\setcounter}{}{}
\providecommand{\algorithmicfont}{}
\providecommand{\setalgorithmicfont}[1]{\renewcommand{\algorithmicfont}{#1}}
\renewcommand{\algorithmiccomment}[1]{{\tiny\hfill$\triangleright$ #1}}
\usepackage{amssymb}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}{Definition}[chapter]
%\newtheorem{example}[section]{Example}
\newtheorem{example}[theorem]{Example}
%\usepackage{example}
%\numberwithin{example}{chapter}
\usepackage[utf8]{inputenc} %%for adding punctuation in the word naive
\usepackage{dirtytalk}
\usepackage{bibentry} %%to add a list of publications-Option 2
\usepackage{listings} %%to add programming source code as it is
\lstset{
basicstyle=\ttfamily,
columns=fullflexible,
frame=single,
breaklines=true,
postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
}
\usepackage{pifont} %%package for checkmark and xmark symbols
\newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
\DeclareUnicodeCharacter{2212}{-} %%to allow for hyphen character in the Malay Abstract Section
\DeclareUnicodeCharacter{2032}{+}
\usepackage[nobottomtitles*]{titlesec} %%prevent heading titles from appearing at the bottom of the page and it will place your heading in the next page.
\usepackage{seqsplit} %%To split a long number over multiple lines without hyphenation