Like many people said, when defined on $\Bbb{C}$, $w = \ln(z)$ is a multivalued function, since $z=e^w=e^{w+ik2\pi}$ for every $k \in \Bbb{Z}$.
From here, following steps in your previous style one could (erroneously) arrive to the conclusion that $ik2\pi = 0$, this statement could be asserted with the awareness that it is an equation "for exponents": $a=_eb \iff e^a=e^b$, where "$=_e$" represents this property.
Knowing this, we should treat every $\ln(z)$ involving equation assuming it's for exponents (moreover, the logarithm is defined as "the exponent $w$ that solve the equation $e^{\ln(z)}=e^w=z$").
Summing up, we could say by definition that $i\varphi =_e i(\varphi+k2\pi), k \in\Bbb{Z}$ and the statement $ik2\pi =_e 0$ is true, since once raised over $e$, those terms represents identity (full revolution around the origin) in single valued function, because if we are manipulating inside multivalued function, like logarithm, doing revolutions around a branch point (the origin) https://en.m.wikipedia.org/wiki/Branch_point cause the function to change value (change its branch)
Varying continuously $\varphi$ from $0$ to $k2\pi, k \in \Bbb{Z}$ in $\ln(e^{1+i\varphi})$, we can see that the result varies as expected: from $1$ to $1+ik2\pi$ (two different values) but $z$ in $\Bbb{C}$ cycled on the circumference with radius $e$ centered at origin, scoring $|k|$ revolutions, no matter if clockwise or counterclockwise (depending on $k$'s sign) returning at its starting point: $z=e$.
So, for every $k \in \Bbb{Z},\ln(e)=_e\ln(e)+ik2\pi$
$\ln(z)$ has infinite (numerable) values for every fixed $z$.
Now, answering your last question, the step I think it's not legit is
$e^{i2\pi+1}=e$
$\ln(e^{i2\pi+1})=_e\ln(e)$
You can't write this one without restrict it to exponentiation, otherwise as you wrote $\ln(e^{i2\pi+1})=\ln(e)$ you're literally saying: the exponent to which $e$ must be raised to produce $e^{i2\pi+1}$ (so $i2\pi+1$), is equal to the exponent to which $e$ must be raised to produce $e$ (so 1), that is your next identity:
$i2\pi+1=1$
this one we obviously know is incorrect (there is no need to go further) because if we write it as $z_1=z_2$ we can use all the complex arithmetic possibile to proof that they are two distinct numbers (simply, representing them as vectors on Gauss's plane, they are two different vectors), but again we can write $i2\pi+1=_e1$ and that is true, because $e^z$ is $i2\pi$ periodic in $\Bbb{C}$.
The wrong assumption you did is:
$a=b \iff \ln(a)=\ln(b)$
In $\Bbb{C}$ is:
$a=b \implies \ln(a)=\ln(b)$
And not vice versa.
Since no one uses $=_e$ notation (it's a lot ambiguous and risky), we can create a univoque $\ln(z)$ function, making restrictions on the argument of z, taking what is called the principal argument $\mathrm{Arg}(z)$:
$\Bbb{R} \ni \arg{z} = \mathrm{Arg}(z) + k2\pi$
with $\mathrm{Arg}(z) \in (-\pi,\pi], k \in \Bbb{Z}$
and define $\ln_{\Bbb{C}}(z)=\ln_{\Bbb{R}}|z|+i\mathrm{Arg}(z)$
This function now is single valued, because if $z$ goes here and there around the origin, $\mathrm{Arg}(z)$ doesn't take into account the revolutions made.
Now, let's leave $\Bbb{C}$, in order to show that the problem is indeed with equations involving multivalued functions, and not with $i$.
This time I'll show you how $\pi=0$:
$$
\left\{
\begin{array}{c}
\sin(\frac{\pi}{2})=1 \\
\sin(\frac{5}{2}\pi)=1
\end{array}
\right.
$$
$$
\sin(\frac{\pi}{2}) = \sin(\frac{5}{2}\pi)
$$
$$
\arcsin(\sin(\frac{\pi}{2})) = \arcsin(\sin(\frac{5}{2}\pi))
$$
$$
\frac{\pi}{2} = \frac{5}{2}\pi
$$
$$
0=2\pi
$$
$$
\pi=0.
$$
Hope you get the point.
\pifor $\pi$. For example,$e^{2i\pi} = 1$yields $e^{2i\pi} = 1$. – Brian Tung Jul 16 '23 at 21:38