I found the root cause by backtracking the commits I made in Git. The error only happened in Production environment which led me to believe there was something in the Babel/Webpack configuration for production optimisation...
Calculating averages can be an expensive operation. Say you have 10 million customer database records and you want to keep track of the average age of your customers....