In some rare cases, right after the creation of a SharePoint 2019 farm, the Distributed Cache service could crash producing:

  • .NET Runtime Error with Event Id 1026
  • Application Error with Event Id 1000

And none of the other solutions are able to fix the service. In this case try to:

  1. stop the cache cluster
  2. export the cache cluster settings
  3. edit the settings by changing the partition count
  4. import the settings
  5. start and stop the service again
  6. revert back the configuration and start the cluster

with following scripts:

  Use-CacheCluster

  # Stop the Caching Services on all cache hosts in the cluster.
  Stop-CacheCluster

  # Export existing cache cluster configuration
  Export-CacheClusterConfig -File c:\temp\appfabconfig.txt
  
  # make a copy of "appfabconfig.txt" and name it "appfabconfig2.txt"
  # Edit appfabconfig2.txt
  # Change <caches partitionCount="256" to "128"

  # Import the changes.
  Import-CacheClusterConfig c:\temp\appfabconfig2.txt

  # Start the Caching Services on all cache hosts in the cluster.
  Start-CacheCluster
  
  # Stop the Caching Services on all cache hosts in the cluster.
  Stop-CacheCluster

  # Import the original settings
  Import-CacheClusterConfig c:\temp\appfabconfig.txt

  # Start the Caching Services on all cache hosts in the cluster.
  Start-CacheCluster

This should fix it. Reference Distributed Cache crashing under SharePoint 2019 running on WS2019