We present an erratum to our Letter [Opt. Lett.46, 3885 (2021)OPLEDP0146-959210.1364/OL.430419]. This erratum corrects an inadvertent error in Eq. (4). The corrections have no influence on the results and conclusions of the original Letter.