I replaced the ZeroFormatter NuGet Package : this one to one of my Custom packages and the error was resolved. Maybe the package that I was using earlier wasn't supported by .NET Core 3.1 which I'm using currently.
ZeroFormatter