The story
From epic + -osity, by analogy with abstract nouns formed by adding the suffix -ity to adjectives ending in the suffix -ose (such as verbosity from verbose). An adjective *epicose, however, does not exist.
Etymology from Wiktionary, CC BY-SA 4.0.