One major issue in pharmaceutical supply chain management is the supply shortage, and determining the root causes of medicine shortages necessitates an in-depth investigation. The concept of risk management is proposed in this study to identify significant risk factors in the pharmaceutical supply chain. Fuzzy failure mode and effect analysis and data envelopment analysis were used to evaluate the risks of the pharmaceutical supply chain. Based on a case study on the Malaysian pharmaceutical supply chain, it reveals that the pharmacy node is the riskiest link. The unavailability of medicine due to unexpected demand, as well as the scarcity of specialty or substitute drugs, pose the most significant risk factors. These risks could be mitigated by digital technology. We propose an appropriate digital technology platform consisting of big data analytics and blockchain technologies to undertake these challenges of supply shortage. By addressing risk factors through the implementation of a digitalized supply chain, organizations can fortify their supply networks, fostering resilience and efficiency, and thereby playing a pivotal role in advancing the Pharma 4.0 era.