Hi there I'm working on a document report. I'm pretty much satisfied with the overall appearance, but for the sake of me I cannot figure out the issues I'm having with the bibliography.
At a first glance, there are no specific errors but I get prompted with the message: "overfull \hbox ..." which I cannot get rid of and neither I can pinpoint to the exact reference that causes it...
Also, looking more into the section it appears there are some references containing way too many commas (,). It didn't seem I have them in the .bib file, so form where are they originating? Below my code and attached the .bib file, as I'm new maybe someone is able to spot some wrong patterns I've been missing. Any help is greatly appreciated!
\documentclass[12pt]{report}
\usepackage{float}
\usepackage{graphicx} % for inserting images
\usepackage[inkscapearea=page]{svg} %for SVG import
\usepackage[letterpaper,margin=1in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{titlesec}
\usepackage{textcomp}
\usepackage{setspace}
\usepackage{csquotes}
\usepackage{authblk}
\usepackage{xurl}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=blue,
filecolor=.,
linkcolor=maroon,
urlcolor=teal,
linktoc=all
}
\usepackage{cleveref}
\usepackage{caption}
\usepackage{orcidlink}
\usepackage{subcaption}
%\captionsetup[table]{font=small}
\captionsetup[figure]{font=small}
\renewcommand{\thefigure}{\arabic{figure}}
\definecolor{teal}{rgb}{0.0, 0.5, 0.5}
\definecolor{maroon}{rgb}{0.69, 0.19, 0.38}
\definecolor{coolblack}{rgb}{0.0, 0.18, 0.39}
\definecolor{MSBlue}{rgb}{0.204, 0.353, 0.541}
\definecolor{darkcerulean}{rgb}{0.03, 0.27, 0.49}
\usepackage{tocloft}
\renewcommand{\cftdot}{}
\renewcommand{\baselinestretch}{1.5}
\renewcommand{\cfttoctitlefont}{\Large\bfseries\color{black}}
%\usepackage{tocbibind} % use this package to automatically insert list of tables and list of figures into the TOC
\renewcommand{\cftchapfont}{\Large\bfseries\color{MSBlue}}
\renewcommand{\cftsecfont}{\large\bfseries\color{darkcerulean}}
\renewcommand{\cftsubsecfont}{\normalsize\bfseries\color{coolblack}}
\title{\Huge\bfseries{Pangenome-based Demographic Inference}}
\author{\LARGE{Matteo Tommaso Ungaro}}
\date{}
\usepackage[main=english, ngerman]{babel}
\usepackage[sorting=ynt]{biblatex}
\usepackage{microtype} %could cause some line spacing issues
\addbibresource{references.bib}
\DeclareNameAlias{author}{family-given}
\titleformat{\chapter}[hang]{\Large\bfseries\color{MSBlue}}{\thechapter}{1em}{}
\titleformat{\section}{\large\bfseries\color{darkcerulean}}
\titleformat{\subsection}{\normalsize\bfseries\color{coolblack}}
\begin{document}
...
\begin{refcontext}[sorting=nyt]
%\emergencystretch=1em %only way to get rid of the warning message
\printbibliography[title=References]
\addcontentsline{toc}{chapter}{References}
\end{refcontext}
\end{document}
Link to .bib: bibliography file
EDIT
Thanks to all, the only things still bothering me is the excessive amount of unwanted and misplaced commas for which I really have no clues...

\emergencystretch=1em %only way to get rid of the warning messageis quite likely the correct solution, why did you comment it out? – David Carlisle Feb 17 '24 at 15:01.bibfile yet, but the output shown in David's answer does not appear to feature too many commas. Can you explain in more detail what you mean by your comment about that? – moewe Feb 17 '24 at 15:34\emergencystretchsince this could/should indicate something is going wrong with my bibliography. – Matteo Feb 17 '24 at 17:34Albrechtsen, Anders, Nielsen, Finn Cilius, and Nielsen, Rasmus. “Ascertainment biases in SNP chips affect measures of population divergence”. In: Molecular biology and evolution 27.11 (2010), pp. 2534–2547. doi: 10.1093/molbev/msq148.– the very first – where commas are added after both name and surname of all authors... – Matteo Feb 17 '24 at 17:37\DeclareNameAlias{author}{family-given}was the problem for all those extra commas... but what it does is that put the surname before the name which is something I like and don't know how to achieve otherwise... – Matteo Feb 17 '24 at 19:08\usepackage [sorting=ynt]{biblatex}to get the desired effect. This effectively used my .bib to grub surnames and names for authors and put them in the reference in this form:Surname, N.Thanks a lot for being so helpful and pointing out to many useful references! – Matteo Feb 17 '24 at 19:45