Choose correct forward current of diode
Almost all devices will have a continuous specification, and a pulse specification which is higher.

However, the ratio of these depends on the detail design of the device, and the length of time the manufacturer, and you, consider 'pulse'. Get the datasheet, for that specific device, and read it carefully.

For instance, the 1N540x series rectifier diode specifies 3A continuous (with certain mounting and ambient conditions), and 200A for a duration of 8.3mS (1/2 a cycle of 60Hz, to deal with capacitor reservoir inrush).

Good news. When you do a parametric sort of a supplier's online parts catalogue, the current figure for diodes is usually the lower continuous rating.