A company that owns $100 of cash and does nothing, should be worth $100. It earns $0, but is still worth $100. Therefore, its P/E would be 100/0 = infinity.
MSTR is becoming sort of like that. It very well could still be overvalued, but people aren't buying it for its earnings, they are buying it for the assets it holds (bitcoin).