Entire monthly quota for Actions spent in one build

For the second month in a row, it happens that one build apparently spends hundreds of minutes, burning the entire Actions quota right away.

Usage report is showing strange activity:
9/18/2021 actions zoran-horvat/coding-helmet-web 7 WINDOWS
9/18/2021 actions zoran-horvat/coding-helmet-web 726 WINDOWS
9/18/2021 actions zoran-horvat/coding-helmet-web 726 WINDOWS

9/25/2021 actions zoran-horvat/coding-helmet-web 0 WINDOWS
9/25/2021 actions zoran-horvat/coding-helmet-web 0 WINDOWS
9/25/2021 actions zoran-horvat/coding-helmet-web 0 WINDOWS

9/26/2021 actions zoran-horvat/coding-helmet-web 0 WINDOWS
9/26/2021 actions zoran-horvat/coding-helmet-web 0 WINDOWS
9/26/2021 actions zoran-horvat/coding-helmet-web 0 WINDOWS

9/29/2021 actions zoran-horvat/coding-helmet-web 0 WINDOWS
9/29/2021 actions zoran-horvat/coding-helmet-web 0 WINDOWS
9/29/2021 actions zoran-horvat/coding-helmet-web 0 WINDOWS

10/1/2021 actions zoran-horvat/coding-helmet-web 1459 WINDOWS
10/1/2021 actions zoran-horvat/coding-helmet-web 1460 WINDOWS
10/1/2021 actions zoran-horvat/coding-helmet-web 7 WINDOWS
10/1/2021 actions zoran-horvat/coding-helmet-web 24 WINDOWS

All builds are for the same project.

As can be seen, most of the builds end within a few minutes, but once in a while a problem occurs and then the report shows that build took 700+ or 1.400+ minutes (entire days!) and the whole quota is gone.

Before this happened today, total minutes consumed were around 100. After the last commit, another build was triggered and then one hour later it was 2.000+ minutes consumed.

Does anyone know why this is happening and how that can be corrected?