You are on a PvE-Conflict server, with windows.
Get rid of your windows.
I empathize with you not wanting to be griefed, but you should not be dying that way after the first couple of times.
Build a few safe areas in your base, always log out in them. And if he is literally camping your windows to shoot you (and your low level)… just replace the windows with walls.
Also, don’t engage him, he’s gonna be enjoying your reactions so he will keep doing it.
Move your base.
Or move servers.
Some people are just mean, can’t be helped. But them ganking you because you are making yourself an easy target won’t get you sympathy here on the forums.
If he keeps coming back to do it again, it’s because he keeps being successful.
During PvE hours on a conflict server, you should stay INSIDE your base if you expect to keep all your equipment.
Otherwise, you should be in garbage armor with a crappy harvesting tool sprinting around looting rocks and wood till it’s “safe” to do the more important things.