Staff reported they found resident in their room self-harming under their blanket instead of sleeping. Resident was self-harming with a crayon. Resident refused to process or accept by mouth medications from the nurse. Crayon was retrieved and resident placed on LOS constant and self-harm precautions.