Fix a unital commutative ring $R$ and consider a left $R$-module $M$. $\newcommand{\End}{{\rm End}}$
(For the indirect application I have in mind, which would require another post, $\End_R(M)$ will never be simple.)
Suppose the following is true:
whenever $N$ is a left $R$-module and $\phi: \End_R(M)\to \End_R(N)$ is a surjective $R$-algebra homomorphism, then $\phi$ is injective.
(edit: thanks to Yves Cornulier for pointing out I should have said $N\neq 0$)
What can we say about $M$? In particular:
Q1. What examples are there of $M$ which satisfy this property, which are not finitely generated as $R$-modules?
The condition being imposed here is reminiscent both of Hopfian rings and Hopfian modules, but at present I don't see a way to reduce the condition I'm considering to either of these notions.
Q2. Is there an existing name for the condition I've just described above?
In my own rough notes I'm calling it "endo-Hopfian" but that seems unsatisfactory on several levels.
Update: In comments, Jeremy Rickard has pointed out that when $R$ is a field and $M$ is an $R$-vector space of countably-infinite dimension then $M$ satisfies the requirements of Q1. In some sense this is related to the indirect application which motivates this question. However, in that (functional-analytic) setting, the right analogy would somehow be a ring $R$ which does not have global dimension zero. (In particular, in my setting not all epis in $R$-Mod split.) I still want $\End_R(M)$ non-simple.
Let me try to turn Q1 into a more specific but speculative/wild question:
Q1b. If $M$ has the property described and is not finitely generated, and if $\End_R(M)$ is not simple, can we deduce anything about the (global) homological dimension of $R$? Or the homological dimension of $M$ in $R$-Mod?
It could be that the answer to Q1b is no for trivial reasons, in the sense that we can always cook up examples by extending a given $R$ in some way.